package org.hdax.service;

import org.hdax.entity.Bill;

import java.util.List;

public interface BillService {
    List<Bill> getAllBills();

    Integer getCount();

    Integer getCountAndC(Bill condition);

    List<Bill> getByPage(Integer offset, Integer limit);

    List<Bill> getByPage(Integer offset, Integer limit, Bill condition);

    boolean deleteById(Integer id);
    boolean batchDelete(List<Integer> ids);

    boolean saveBill(Bill bill);

    Bill getById(Integer id);
    boolean updateBill(Bill bill);
}
